package butines.core.gui;

import java.awt.Graphics2D;
import java.util.ArrayList;

import butines.core.Mouse;

public class GUIManager extends ArrayList<GUIPainel>  {

	private static final long serialVersionUID = 1L;
	
	public GUIManager() {
	}
	
	public void shutdown() {
	}
	
	public void update(Mouse mouse, float delta) {
	    for (int i = 0; i < size(); i++) {
	        get(i).update(mouse, delta);
	    }
	}
	
	public void render(Graphics2D g2d) {
	    for (int i = size() - 1; i >= 0; i--) {
            get(i).render(g2d);
        }
	}
	
}